home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / graphics / scrfe100.zip / FONTOOLS.BI < prev    next >
Text File  |  1993-02-27  |  3KB  |  63 lines

  1. ' This is the BASIC interface to Screen Font Editor, (C) 1993 Jeremy Lilley
  2. ' callable from Quick Basic (R) 4.0 or 4.5. You must create a QB library
  3. ' file using the /Q option on LINK with the FONTS_BS.OBJ file. You may 
  4. ' re-assemble FONTS_BS.ASM to make any changes, but the author is not 
  5. ' responsible for any damage caused by the interface or modified versions of
  6. ' it, so be careful, ESPECIALLY with the sequencefonts and desequencefonts 
  7. ' subroutines, as any modification of them could cause PERMANENT DAMAGE to
  8. ' your monitor.
  9. '
  10. ' To interface SFF or SFS files to these subroutines, you can do any of the
  11. ' following :
  12. '
  13. ' 1) Use the QB utilities to create an object file out of a SFF or SFS file
  14. '    and then declare it as a pseudo subroutine.
  15. '
  16. ' 2) Use LANGUAGE.EXE to either create a BSave file from a SFS.
  17. '
  18. ' 3) Use file IO and load files into arrays created with the DIM command.
  19. '    These files tend to get lost though.
  20. '
  21. ' 4) Use LANGUAGE.EXE to create BASIC Data statements, then load them into an
  22. '    array.
  23. '
  24. ' 5) Use LANGUAGE.EXE to create assembly language DB statements then make them
  25. '    into a PUBLIC reference and interface as a pseudo-subroutine.
  26. '
  27. ' Here are the PUBLIC subroutines :
  28. '
  29. '
  30. ' Readfont : This subroutine reads a font in memory and displays it on screen.
  31. ' The screen is not cleared.
  32. DECLARE SUB READFONT ( A& )
  33. '
  34. ' Readscreen : This subroutine reads a screen or portion of one and loads it
  35. ' into video memory. Only the block defined will be replaced on-screen.
  36. DECLARE SUB READSCREEN ( A& )
  37. ' ResetFonts : Resets fonts and sets VGA to 400 line mode.
  38. DECLARE SUB RESETFONTS ( )
  39. '
  40. ' Sequencefonts : This need never be called by the programmer. It sets the 
  41. ' video system up so that you can alter the fonts by moving bit patterns
  42. ' in and out of segment &A000. There are 32 bytes allocated to each bit 
  43. ' pattern, so the first character would be placed at &A000:0, the second
  44. ' at &A000:32, et cetera. This messes up the screen when it is on, so you
  45. ' should call desequencefonts as soon as possible.
  46. DECLARE SUB SEQUENCEFONTS ( )
  47. '
  48. ' Desequencefonts : This normalizes the video system after a call to 
  49. ' sequencefonts.
  50. DECLARE SUB DESEQUENCEFONTS ( ) 
  51. '
  52. ' SetScanLines : Sets scan lines on a VGA monitor. The value passed on can
  53. ' be 0 = 200 lines, 1 = 350 lines, 2 = 400 lines.
  54. DECLARE SUB SETSCANLINES ( A% )
  55. '
  56. ' Savefonts : Saves the state of the font buffer. 8192 bytes are required as
  57. ' a save buffer.
  58. DECLARE SUB SAVEFONTS ( A& )
  59. '
  60. ' RestoreFonts : Restores previously saved fonts
  61. DECLARE SUB RESTOREFONTS ( A& )
  62.